<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户首页</title>
  <link rel="stylesheet" href="lib/bootstrap.min.css">
  <link rel="stylesheet" href="lib/iconfont.css">
  <link rel="stylesheet" href="css/mian.css">
  <style>
    textarea {
      outline: none;
    }
  </style>
</head>

<body>
  <!-- 上方的用户菜单 -->
  <!-- text-文本对齐 p-padding -->
  <div class="text-end p-2">
    <!--  -->
    <div class="btn-group">
      <span class="btn btn-outline-primary">
        <i class="iconfont">&#xe603;</i>
        菜单
      </span>
      <!-- data-bs-toggle="dropdown" 触发下拉菜单-->
      <span data-bs-toggle="dropdown" class="btn btn-outline-primary dropdown-toggle dropdown-toggle-split"></span>
      <ul class="dropdown-menu">
        <li class="dropdown-item">
          <i class="iconfont">&#xe60f;</i>
          <span id="spUser"></span>
        </li>
        <li class=" dropdown-item" data-bs-toggle="modal" data-bs-target="#divUDialog">
          <i class="iconfont">&#xe60f;</i>
          <span id="spUserInfo">用户附加信息</span>
        </li>
        <li class="dropdown-divider"></li>
        <!-- 作业一 ，完成下面所有功能-->
        <li class="dropdown-item">
          <i class="iconfont">&#xe615;</i>
          <span>修改密码</span>
        </li>


        <li class="dropdown-item">
          <i class="iconfont">&#xe616;</i>
          <span>修改昵称</span>
        </li>

        <li class="dropdown-divider"></li>
        <li class="dropdown-item">
          <i class="iconfont">&#xe665;</i>
          <span>安全退出</span>
        </li>
        <!-- 注册页面（使用邮箱注册接口完成） -->
      </ul>
    </div>
  </div>



<div class="menus">

  <div class="card">
    <div class="card-header">简易留言板 </div>
    <div class="card-body">
      <i onclick="location='message.html'" class="iconfont">&#xe631;</i>
    </div>
  </div>

</div>

  <!-- 修改附加信息的对话框开始 -->
  <div class="modal fade " id="divUDialog" data-bs-backdrop="static">
    <div class="modal-dialog">
      <div class="modal-content">


        <div class="modal-header">x
          <i class="iconfont">&#xe616;修改信息</i>
        </div>

        <div class="modal-body">
          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe64c;</span>
            <select id="selSex" class="form-select">
              <option value="n" selected>保密</option>
              <option value="m">男</option>
              <option value="f">女</option>
            </select>
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe612;</span>
            <input id="txtEMail" type="text" class="form-control" placeholder="邮箱">
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe62d;</span>
            <input id="txtImg" type="text" class="form-control" placeholder="头像">
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe628;</span>
            <input id="txtPhone" type="text" class="form-control" placeholder="电话">
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe6e8;</span>
            <input id="txtQQ" type="text" class="form-control" placeholder="QQ">
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe8bb;</span>
            <input id="txtWechat" type="text" class="form-control" placeholder="微信">
          </div>

          <div class="input-group m-1">
            <span class="input-group-text iconfont">&#xe65d;</span>
            <textarea id="txtInfo" type="text" class="form-control" placeholder="简介"></textarea>
          </div>



        </div>

        <div class="modal-footer">
          <button id="btnSave" class="btn btn-primary">
            <span> <i class="iconfont">&#xe613;保存</i></span>
          </button>
          <button data-bs-toggle="modal" data-bs-target="#divUDialog" class="btn btn-danger">
            <i class="iconfont">&#xe614;关闭</i>
          </button>
        </div>



      </div>
    </div>
  </div>


  <!-- toast信息框 -->
  <div class="position-fixed fixed-bottom" style="z-index: 2000;">
    <div class="toast" id="divToast">
      <div class="toast-body"></div>
    </div>
  </div>

  <!-- 修改附加信息的对话框结束 -->
  <script src="lib/bootstrap.bundle.min.js"></script>
  <script src="lib/axios.min.js"></script>
  <script src="lib/qs.min.js"></script>
  <script src="lib/spark-md5.min.js"></script>
  <script src="lib/server.js"></script>

  <script src="js/main.js"></script>

</body>

</html>